<template>
  <div class="">
    <div class="cell" v-for="(item,i) in list" :key="i">
      <!-- <van-icon name="manager" color="yellow" /> -->
      <van-cell
        :title="++i+'.'+item.name"
        is-link
         :to="{path:'/introduce',query:{id:item.id}}"
       
      />
    </div>
  </div>
</template>

<script type="text/javascript">
import { Cell, CellGroup } from "vant";
export default {
  data() {
    return {
      list:[]
    };
  },
  components: {
    [Cell.name]: Cell
  },
  created(){
    this.getOnlineHelp()
    dd.biz.navigation.setTitle({
      title: "在线帮助" //控制标题文本，空字符串表示显示默认文本
    });
  },
  methods:{
    async getOnlineHelp() {
       let userId = localStorage.getItem("userId");
       let corpId = localStorage.getItem("custid");
      //  let corpId = this.$utils.getUrlKey("custid");
      const res = await this.$http.get(
        `yuepoints/onlineHelp?corpId=${corpId}&userId=${userId}&type=agree&cursor=0`
      );
      this.list = res.data.data;
    },
  }
};
</script>

<style lang="less" scoped>
.cell {
    text-align: left;
  }
</style>
